package com.example.demo;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user8")
@RestController
public class User8 {
    @RequestMapping("/login/{username}/and/{password}")
    public String login(@PathVariable("username") String username,
                        @PathVariable("password") String password) {
        return "账号 : "+username + "<br>" + "密码 : "+password;
    }
}
